package behavior.state.impl;

import behavior.state.Room;
import behavior.state.State;

public class CheckInState implements State {

	Room room;

	public CheckInState(Room room) {
		this.room = room;
	}

	public void bookRoom() {
		System.out.println(room.getRootId() + "号房间已经入住了...");
	}

	public void checkInRoom() {
		System.out.println(room.getRootId() + "号房间已经入住了...");
	}

	public void checkOutRoom() {
		System.out.println(room.getRootId() + "号房间退房成功....");
		room.setState(room.getFreeTimeState()); // 状态变成空闲
	}

	public void unsubscribeRoom() {
		// 不需要做操作
	}
}
